package com.source.baseData.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author Feng
 * @since 2021-02-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="委托", description="")
public class Entrust implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "entrustId", type = IdType.ASSIGN_UUID)
    private String entrustId;

    @ApiModelProperty(value = "用户id")
    @TableField("userId")
    private String userId;

    @ApiModelProperty(value = "去向市场id")
    @TableField("toMarketId")
    private String toMarketId;

    @ApiModelProperty(value = "屠宰档口id")
    @TableField("stallsId")
    private Integer stallsId;

    @ApiModelProperty(value = "状态（0已删除委托，1等待中委托，2已接单委托，3已拒单拒单）")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "createDate", fill = FieldFill.INSERT)
    private Date createDate;

    @ApiModelProperty(value = "接单时间")
    @TableField(value = "acceptDate")
    private Date acceptDate;

    @ApiModelProperty(value = "数量")
    @TableField("poultryCount")
    private Integer poultryCount;

    @ApiModelProperty(value = "逻辑删除")
    @TableField(value = "isDelete", fill = FieldFill.INSERT)
    @TableLogic
    private Boolean isDelete;

    @ApiModelProperty(value = "禽类id")
    @TableField("poultryId")
    private String poultryId;

    @ApiModelProperty("再次贴标时间")
    @TableField("labellingTime")
    private Date labellingTime;

    @ApiModelProperty("脚标机编号")
    @TableField("machineNumber")
    private String machineNumber;

    @ApiModelProperty("上市时间")
    @TableField("goMarketTime")
    private Date goMarketTime;

    @ApiModelProperty("是否再次贴标(0否，1是)")
    @TableField("isReLabelling")
    private Integer isReLabelling;

    @ApiModelProperty("再次贴标时间")
    @TableField("reLabellingTime")
    private Date reLabellingTime;

}
